<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 停车场管理<span class="c-gray en">&gt;</span> 车位查询 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">

        <input type="text" name="cS_number" id="cS_number" placeholder="车位编号" style="width:250px" class="input-text">
        <button type="submit" class="btn btn-primary radius" id="search" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> </span> <span class="r">共有数据：<strong><spen th:text="${pageInfo.total}"></spen></strong> 条</span> </div>



    <div class="mt-20">
        <table  class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>

            <tr class="text-c">
                <th width="60">停车位置ID</th>
                <th width="50">房产</th>
                <th width="80">车位编号</th>
                <th width="80">状态</th>
                <th width="100">车位类型</th>
                <th width="100">管理类型</th>
                <th width="100">预售价格</th>
                <th width="100">预租价格</th>
                <th width="150">位置</th>
                <th width="100">备注</th>
            </tr>
            </thead>
            <tbody>

            <tr class="text-c" th:each="sele,item:${pageInfo.list}">
                <td th:text="${item.count}">停车位置id</td>
                <td th:text="${sele.cs_housing}">房产</td>
                <td th:text="${sele.cS_number}" href="javascript:;" th:onclick="admin_edit([['详情信息']],[['managementselect?cS_number='+${sele.cS_number}]],[[1]],[[800]],[[500]])" style="color:#416dff;">车位编号</td>
                <td th:text="${sele.cs_state}">状态</td>
                <td th:text="${sele.cs_cartype }">车位类型</td>
                <td class="text-c" th:text="${sele.cs_manage}">管理类型</td>
                <td class="text-c" th:text="${sele.cs_sell}">预售价格</td>
                <td th:text="${sele.cs_rent}">预租价格</td>
                <td th:text="${sele.ca_plilce}">位置</td>
                <td th:text="${sele.cs_remarks}">备注</td>

                </td>
            </tr>


            </tbody>

        </table>
        <tr >
            <!--第<spen th:text="${pageInfo.pageNum}"></spen>页/共<spen th:text="${pageInfo.pages}"></spen>
            <a href="" th:href="@{/carcontract(pageNum=1)}">首页</a>

            <a href="" th:href="@{/carcontract(pageNum=${pageInfo.pageNum}-1)}">上一页</a>
            <a href="" th:href="@{/carcontract(pageNum=${pageInfo.pageNum}+1)}">下一页</a>
            <a href="" th:href="@{/carcontract(pageNum=${pageInfo.pages})}">尾页</a>-->

            当前是: <spen th:text="${pageInfo.pageNum}"></spen> /<spen th:text="${pageInfo.pages}"></spen> 页
            <a th:href="@{'carseatController?&pageNum='+${pageInfo.firstPage}+'&cS_number='+${cS_number}}"><button class="btn btn-primary radius">首页</button></a>
            <a th:href="@{'carseatController?&pageNum='+${pageInfo.pageNum-1}+'&cS_number='+${cS_number}}"><button class="btn btn-primary radius">上一页</button></a>
            <a th:href="@{'carseatController?&pageNum='+${pageInfo.pageNum+1}+'&cS_number='+${cS_number}}"><button class="btn btn-primary radius">下一页</button></a>
            <a th:href="@{'carseatController?&pageNum='+${pageInfo.pages}+'&cS_number='+${cS_number}}"><button class="btn btn-primary radius">末页</button></a>

           <!-- 每页显示:<select name="theSize" id="theSize" onchange="chagePage()">
            <option value="1">1</option>
            <option value="2">2</option>
        </select>-->
        </tr>
    </div>
</div>


<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
    /*销毁合同*/
    function admin_stop(c_number,c_state,c_contractid){
        layer.confirm("确定销毁合同编号:"+c_contractid+" 的?",function(index){
            location.href="destroy?c_number="+c_number+"&c_state="+c_state+"&c_contractid="+c_contractid;
        });
    }
    /*删除合同*/
    function delBook(c_id,c_contractid){
        layer.confirm("确定删除合同编号:"+c_contractid+" 的?",function(index){
            location.href="deletedestroy?c_id="+c_id;
        });
    }
</script>
<script>
//查询详情
    function admin_edit(title,url,id,w,h){
        layer_show(title,url,w,h);
    }

    //添加合同
    function admin_add(title,url,w,h){
        layer_show(title,url,w,h);
    }

</script>
<script>
    //搜索
    $(document).ready(function () {
        $("#search").click(function () {
            var cS_number=$("#cS_number").val();

            location.href="carseatController?cS_number="+cS_number;
        })
    })

</script>


<script type="text/javascript">
   /* function chagePage() {
        var theTag = document.getElementById("theSize");
        var theSizeStr = theTag.value;
        window.location = "carseatController?pageNum=1&pageSize=" + theSizeStr;
    }*/
</script>
</body>
</html>